package com.babble.subitem.feign;

import com.babble.subitem.entity.Tag;
import org.springblade.common.constant.CommonConstant;
import org.springblade.common.exception.MsgException;
import org.springblade.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(
	value = CommonConstant.BABBLE_SUBITEM_NAME

)
public interface ITagClient {
	String API_PREFIX = "/babble/tag";

	/**
	 * 获取用户信息
	 *
	 * @param id 用户id
	 * @return
	 */
	@PostMapping(API_PREFIX + "/info")
	R<List<Tag>> info(@RequestParam("id")String id) throws MsgException;

}
